package com.library.mvp.presenter;

import com.library.mvp.MvpInteractor;
import com.library.mvp.MvpPresenter;
import com.library.mvp.MvpView;

/**
 * Created by Administrator on 2016/8/18.
 */

public abstract class BasePresenter<V extends MvpView, I extends MvpInteractor> {
    protected V view;
    protected I interactor;

    public abstract I createInteractor();

    public BasePresenter(V view) {
        this.view = view;
        interactor = createInteractor();
    }
}
